/**
 * Created by cheny on 2016/1/26.
 */

module.exports = function(grunt){
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        jshint:{
            all:['lib/access_token.js'],
            options:{
                browser:false,
                devel:true
            }
        },
        mochaTest:{
            test:{
                options:{
                    reporter: 'spec',
                    clearRequireCache:false
                },
                src: ['test/*spec.js']
            }
        }
    });
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-mocha-test');

    grunt.registerTask('test', ['jshint', 'mochaTest']);
};